package com.nc.delivery_project.shared.servicelocator;

import com.google.web.bindery.requestfactory.shared.ServiceLocator;
import com.nc.delivery_project.server.service.ContactService;

/**
 * Created by miroshnik on 1/28/2015.
 */
public class ContactServiceLocator implements ServiceLocator {
    
    @Override
    public Object getInstance(Class<?> clazz) {
        return ContactServiceHolder.SERVICE;
    }
    
    private static class ContactServiceHolder {
        private static final ContactService SERVICE = new ContactService();
    }
}
